package com.reder.practice.dao;

import com.reder.practice.bean.Video;
import com.reder.practice.vo.VideoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 视频持久层
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:06</p>
 */
public interface VideoDao {
    int deleteByPrimaryKey(Long id);

    int insert(Video record);

    int insertSelective(Video record);

    Video selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Video record);

    int updateByPrimaryKey(Video record);

    List<VideoVo> queryVideo(int pageNumber, int sizeOfOnePage);

    List<VideoVo> queryVideoById(int pageNumber, int sizeOfOnePage,
                                 @Param("userId") Long userId);

}